STEP 9: Let's see how often the user answered "a"!

We use Get Count to count the number of times a string appears in a list.

  • Go to and drag Get Count to the bottom of your program OUTSIDE of the loop.
  • Change the name of the variable that stores the count to a_num.
  • Change my_list in the .count() command to user_choices and change my_param to the string "a".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)